package com.yilin.tms.core.entity.system.param;

import com.baomidou.mybatisplus.annotation.TableName;
import com.yilin.tms.core.commons.base.BaseEntity;

import javax.persistence.*;

/**
 * 描   述： 货物类型
 * 版 本 号：  V1.0
 */

@Entity
@Table(name = "param_goods_type")
@TableName("param_goods_type")
public class GoodsType extends BaseEntity {
    @Column
    private String name;  //名称
    @Column(name = "take_insurance")
    private boolean takeInsurance;//必须购保
    @Column(name = "main_type")
    private boolean mainType;//主类型
    @Column(name="parent_id")
    private String parentId; //父集

    @Column(name="code")
    private String code;  //代码
    @Column(name="goods_type_level")
    private Integer goodsTypeLevel;//所属等级默认为1
    @Column(name="remark")
    private String remark;//备注
    @Column(name="level_unit_price")
    private Double levelUnitPrice;//水平单价/参考单价  单位： /单位·公里

    public boolean isTakeInsurance() {
        return takeInsurance;
    }

    public void setTakeInsurance(boolean takeInsurance) {
        this.takeInsurance = takeInsurance;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public boolean isMainType() {
        return mainType;
    }

    public void setMainType(boolean mainType) {
        this.mainType = mainType;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public Integer getGoodsTypeLevel() {
        return goodsTypeLevel;
    }

    public void setGoodsTypeLevel(Integer goodsTypeLevel) {
        this.goodsTypeLevel = goodsTypeLevel;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Double getLevelUnitPrice() {
        return levelUnitPrice;
    }

    public void setLevelUnitPrice(Double levelUnitPrice) {
        this.levelUnitPrice = levelUnitPrice;
    }
}
